package com.mapperdb.util;

/**
 * 精简版的 Pair
 * @author Administrator
 *
 * @param <A>
 * @param <B>
 */
public final class Pair<A, B> {
	private final A val0;
	private final B val1;

	public static <A, B> Pair<A, B> with(final A value0, final B value1) {
		return new Pair<A, B>(value0, value1);
	}

	public Pair(final A value0, final B value1) {
		this.val0 = value0;
		this.val1 = value1;
	}

	public A getValue0() {
		return this.val0;
	}

	public B getValue1() {
		return this.val1;
	}
}
